package com.lh.controller;

import com.alibaba.fastjson.JSONObject;
import com.lh.entity.table.UpdateProgress;
import com.lh.service.UpdateProgressService;
import com.lh.utils.Answer;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/updateProgress")
public class UpdateProgressController
{
    @Resource
    private UpdateProgressService updateProgressService;

    @RequestMapping("/getUpdateProgressByRectificationId")
    public Answer<Object> getUpdateProgressByRectificationId(@RequestBody JSONObject reqJson) {
        return updateProgressService.getUpdateProgressByRectificationId(reqJson);
    }

    @RequestMapping("/insertUpdateProgress")
    public Answer<Object> insertUpdateProgress(@RequestBody UpdateProgress updateProgress) {
        return updateProgressService.insertUpdateProgress(updateProgress);
    }
}
